package com.example.project.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.util.Date;

@Data
@Entity
@Table(name = "tb_candidate")
public class Candidate {
    @Id
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    private String aid;
    private String title;
    private int num;
    private String itemDesc;
    private String coverUrl;
    private String videoUrl;
    private int voteCount;
    private boolean state;
    private Date createTime;
    private Date updateTime;

}
